import Button from './Basic/button/index.js';
import ButtonGroup from './Basic/buttonGroup/index.js';
import Upload from './Form/upload/index.js';
import Image from './Others/image/index.js';
import Dialog from './Others/dialog/index.js';
import Tailor from './Others/tailor/index.js';
import '@/components/Notice/loading'
import MessageBox from '@/components/Notice/messageBox'
import Message from '@/components/Notice/message'
import Loading from '@/components/Notice/loading'
import Progress from '@/components/Data/progress'
const components = [
    Button,
    ButtonGroup,
    Upload,
    Image,
    Dialog,
    Tailor,
    Progress
]
const install = function(Vue, opts = {}) {
    components.forEach(component => {
        Vue.component(component.name, component);
    });
}
if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue);
}
export {
    install,
    Button,
    ButtonGroup,
    Upload,
    Image,
    Dialog,
    Tailor,
    Loading,
    Progress,
    MessageBox,
    Message
}